home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: ns.neckar-alb.de!wiedmann
  2. From: wiedmann@wiedmann.neckar-alb.de (Caldera Desktop User)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: kbhit
  5. Date: 29 Feb 1996 20:21:24 GMT
  6. Organization: ISS Internet Service Stuttgart GmbH
  7. Message-ID: <4h51s4$4do@iss1.neckar-alb.de>
  8. References: <dkauppDnGztK.Ex@netcom.com>
  9. Reply-To: wiedmann@neckar-alb.de
  10. NNTP-Posting-Host: wiedmann.neckar-alb.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Blitter (dkaupp@netcom.com) wrote:
  14. :  I know I saw this asked a few months ago, but is there a function 
  15. : equivalent to kbhit() for AmigaDos? Preferably without opening any libs.
  16.  
  17. :  I've looked thru the TurboC and BorlandC++ include files on the PC but 
  18. : could not find the actual function kbhit(). 
  19.  
  20. :  I did look at the Keyboard() function on the ACM but I would not like to 
  21. : hit the hardware. I do have the RKM's but I could not find anything similar.
  22.  
  23.  
  24. The GNU chess  4.0.75 sources (Aminet, game/board) contain a small
  25. file kbhit.c which does exactly what you want. Works fine with Dice,
  26. SAS/C and gcc.
  27.  
  28.  
  29. Bye,
  30.  
  31. Jochen
  32.  
  33.  
  34.